//
//  YuYueCanPinMsgCell.m
//  FD
//
//  Created by xiaofang wang on 2018/11/9.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import "YuYueCanPinMsgCell.h"
@interface YuYueCanPinMsgCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLb;
@property (weak, nonatomic) IBOutlet UILabel *priceLb;

@end

@implementation YuYueCanPinMsgCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setCpmsgMode:(CanPinMsgModel *)cpmsgMode {

    _cpmsgMode = cpmsgMode;
    
    self.nameLb.text = cpmsgMode.name;
    self.priceLb.text = [NSString stringWithFormat:@"€%.1f x%@",[cpmsgMode.price floatValue], cpmsgMode.count];
}


//11-12 预约商品详情页面的model
- (void)setYuyuecanPinMsgModel:(YuYueCanPinMsgModel *)yuyuecanPinMsgModel {
    _yuyuecanPinMsgModel = yuyuecanPinMsgModel;
    
    self.nameLb.text = yuyuecanPinMsgModel.leftName;
    self.priceLb.text = yuyuecanPinMsgModel.rightName;
}
@end
